package com.horizon.wxapp.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.horizon.wxapp.dao.RecommendsMapper;
import com.horizon.wxapp.entity.Recommend;
import com.horizon.wxapp.service.RecommendsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class RecommendsServiceImpl implements RecommendsService {

    @Resource
    RecommendsMapper recommendsMapper;

    @Override
    public List<Recommend> getRecommends() {
        return recommendsMapper.selectList(new LambdaQueryWrapper<>());
    }
}
